<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BrokenIRC: t_serv Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BrokenIRC
   &#160;<span id="projectnumber">0.0.42</span>
   </div>
   <div id="projectbrief">A &#39;not so functionnal&#39; irc server and a WIP client</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">t_serv Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="server_8h_source.html">server.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a7659da4b3744e6ddd8f77f37d2138914"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a7659da4b3744e6ddd8f77f37d2138914">nfds</a></td></tr>
<tr class="separator:a7659da4b3744e6ddd8f77f37d2138914"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46bee037324e9deec26f15fbc4f6d8e5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a46bee037324e9deec26f15fbc4f6d8e5">epollfd</a></td></tr>
<tr class="separator:a46bee037324e9deec26f15fbc4f6d8e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c3a4553e608f252da1d211b20b459ec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a5c3a4553e608f252da1d211b20b459ec">conn_sock</a></td></tr>
<tr class="separator:a5c3a4553e608f252da1d211b20b459ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9f24d41d8822f2c1b7df4362e18cad9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#ac9f24d41d8822f2c1b7df4362e18cad9">listen_sock</a></td></tr>
<tr class="separator:ac9f24d41d8822f2c1b7df4362e18cad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85e55e3fe1bfb973e7f5d15a0a436b18"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a85e55e3fe1bfb973e7f5d15a0a436b18">nread</a></td></tr>
<tr class="separator:a85e55e3fe1bfb973e7f5d15a0a436b18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a005714cf56aaffce970916774cf2b04a"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a005714cf56aaffce970916774cf2b04a">buf</a> [<a class="el" href="server_8h.html#a6821bafc3c88dfb2e433a095df9940c6">BUF_SIZE</a>]</td></tr>
<tr class="separator:a005714cf56aaffce970916774cf2b04a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dd3a9c2648da4fba88a38276803037c"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a0dd3a9c2648da4fba88a38276803037c">host</a> [NI_MAXHOST]</td></tr>
<tr class="separator:a0dd3a9c2648da4fba88a38276803037c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee509c3823199bf9f0ad285a718260bd"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#aee509c3823199bf9f0ad285a718260bd">service</a> [NI_MAXSERV]</td></tr>
<tr class="separator:aee509c3823199bf9f0ad285a718260bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a018d976aed4b9930a794da25a758a024"><td class="memItemLeft" align="right" valign="top"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a018d976aed4b9930a794da25a758a024">rp</a></td></tr>
<tr class="separator:a018d976aed4b9930a794da25a758a024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8783e38ef0c183366703267ca7b3298"><td class="memItemLeft" align="right" valign="top"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#ae8783e38ef0c183366703267ca7b3298">res</a></td></tr>
<tr class="separator:ae8783e38ef0c183366703267ca7b3298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71d55fd97c2ffc84c72b17820396cdff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a71d55fd97c2ffc84c72b17820396cdff">hints</a></td></tr>
<tr class="separator:a71d55fd97c2ffc84c72b17820396cdff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa95442079d9e7a2294ad8df1335ae0f4"><td class="memItemLeft" align="right" valign="top">struct epoll_event&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#aa95442079d9e7a2294ad8df1335ae0f4">ev</a></td></tr>
<tr class="separator:aa95442079d9e7a2294ad8df1335ae0f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c6f3b16eed7e8c35eb4d2831583ea15"><td class="memItemLeft" align="right" valign="top">struct epoll_event&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structt__serv.html#a3c6f3b16eed7e8c35eb4d2831583ea15">events</a> [<a class="el" href="server_8h.html#ae42954bb8545d24e3e9dcde5920c9a0b">MAX_EVENTS</a>]</td></tr>
<tr class="separator:a3c6f3b16eed7e8c35eb4d2831583ea15"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Main server structure </p>

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00085">85</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a005714cf56aaffce970916774cf2b04a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a005714cf56aaffce970916774cf2b04a">&#9670;&nbsp;</a></span>buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char t_serv::buf[<a class="el" href="server_8h.html#a6821bafc3c88dfb2e433a095df9940c6">BUF_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00091">91</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00043">evhandler()</a>, <a class="el" href="server__main_8c_source.html#l00074">getactiveclients()</a>, and <a class="el" href="logs__helpers_8c_source.html#l00059">logthisevent()</a>.</p>

</div>
</div>
<a id="a5c3a4553e608f252da1d211b20b459ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c3a4553e608f252da1d211b20b459ec">&#9670;&nbsp;</a></span>conn_sock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int t_serv::conn_sock</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00088">88</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00020">initco()</a>.</p>

</div>
</div>
<a id="a46bee037324e9deec26f15fbc4f6d8e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46bee037324e9deec26f15fbc4f6d8e5">&#9670;&nbsp;</a></span>epollfd</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int t_serv::epollfd</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00087">87</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00020">initco()</a>, <a class="el" href="server__main_8c_source.html#l00096">server()</a>, and <a class="el" href="server__init_8c_source.html#l00059">set_epoll()</a>.</p>

</div>
</div>
<a id="aa95442079d9e7a2294ad8df1335ae0f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa95442079d9e7a2294ad8df1335ae0f4">&#9670;&nbsp;</a></span>ev</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct epoll_event t_serv::ev</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00097">97</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00020">initco()</a>, and <a class="el" href="server__init_8c_source.html#l00059">set_epoll()</a>.</p>

</div>
</div>
<a id="a3c6f3b16eed7e8c35eb4d2831583ea15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c6f3b16eed7e8c35eb4d2831583ea15">&#9670;&nbsp;</a></span>events</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct epoll_event t_serv::events[<a class="el" href="server_8h.html#ae42954bb8545d24e3e9dcde5920c9a0b">MAX_EVENTS</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00098">98</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00074">getactiveclients()</a>, and <a class="el" href="server__main_8c_source.html#l00096">server()</a>.</p>

</div>
</div>
<a id="a71d55fd97c2ffc84c72b17820396cdff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71d55fd97c2ffc84c72b17820396cdff">&#9670;&nbsp;</a></span>hints</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a> t_serv::hints</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00096">96</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00096">server()</a>.</p>

</div>
</div>
<a id="a0dd3a9c2648da4fba88a38276803037c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dd3a9c2648da4fba88a38276803037c">&#9670;&nbsp;</a></span>host</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char t_serv::host[NI_MAXHOST]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00092">92</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00043">evhandler()</a>, and <a class="el" href="logs__helpers_8c_source.html#l00059">logthisevent()</a>.</p>

</div>
</div>
<a id="ac9f24d41d8822f2c1b7df4362e18cad9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9f24d41d8822f2c1b7df4362e18cad9">&#9670;&nbsp;</a></span>listen_sock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int t_serv::listen_sock</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00089">89</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00074">getactiveclients()</a>, <a class="el" href="server__main_8c_source.html#l00020">initco()</a>, <a class="el" href="server__main_8c_source.html#l00096">server()</a>, and <a class="el" href="server__init_8c_source.html#l00059">set_epoll()</a>.</p>

</div>
</div>
<a id="a7659da4b3744e6ddd8f77f37d2138914"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7659da4b3744e6ddd8f77f37d2138914">&#9670;&nbsp;</a></span>nfds</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int t_serv::nfds</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00086">86</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00074">getactiveclients()</a>, and <a class="el" href="server__main_8c_source.html#l00096">server()</a>.</p>

</div>
</div>
<a id="a85e55e3fe1bfb973e7f5d15a0a436b18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85e55e3fe1bfb973e7f5d15a0a436b18">&#9670;&nbsp;</a></span>nread</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t t_serv::nread</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00090">90</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00043">evhandler()</a>, <a class="el" href="server__main_8c_source.html#l00074">getactiveclients()</a>, and <a class="el" href="logs__helpers_8c_source.html#l00059">logthisevent()</a>.</p>

</div>
</div>
<a id="ae8783e38ef0c183366703267ca7b3298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8783e38ef0c183366703267ca7b3298">&#9670;&nbsp;</a></span>res</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a>* t_serv::res</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00095">95</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00096">server()</a>, and <a class="el" href="server__init_8c_source.html#l00100">set_sockfd()</a>.</p>

</div>
</div>
<a id="a018d976aed4b9930a794da25a758a024"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a018d976aed4b9930a794da25a758a024">&#9670;&nbsp;</a></span>rp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="server_8h.html#aa62dc6ab378205892df275c6df156dba">adrinf</a>* t_serv::rp</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00094">94</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__init_8c_source.html#l00100">set_sockfd()</a>.</p>

</div>
</div>
<a id="aee509c3823199bf9f0ad285a718260bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee509c3823199bf9f0ad285a718260bd">&#9670;&nbsp;</a></span>service</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char t_serv::service[NI_MAXSERV]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="server_8h_source.html#l00093">93</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="server__main_8c_source.html#l00043">evhandler()</a>, and <a class="el" href="logs__helpers_8c_source.html#l00059">logthisevent()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/<a class="el" href="server_8h_source.html">server.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
